package net.xxcxcxcx.xc_enhancedmob.damgesource;

import net.minecraft.entity.damage.DamageSource;

public class SkillDamageSource extends DamageSource {
    public static SkillDamageSource PassSkillBaseDamage = new SkillDamageSource("passskill").setBypassesSkill();
    boolean bypassSkill;

    public SkillDamageSource(String name) {
        super(name);
    }

    public boolean getPassSkill() {
        return bypassSkill;
    }

    public SkillDamageSource setBypassesSkill() {
        this.bypassSkill = true;
        return this;
    }

    public SkillDamageSource setBypassesArmor() {
        return (SkillDamageSource) super.setBypassesArmor();
    }

    public SkillDamageSource setOutOfWorld() {
        return (SkillDamageSource) super.setOutOfWorld();
    }

    public SkillDamageSource setUnblockable() {
        return (SkillDamageSource) super.setUnblockable();
    }

    public SkillDamageSource setFire() {
        return (SkillDamageSource) super.setFire();
    }
}
